//
// Created by dddgzc on 2025/1/26.
//

#ifndef SUNFLOWERPLAYER_H
#define SUNFLOWERPLAYER_H
#include "Player.h"

extern Atlas* sunflowerAttackExRightAtlas;
extern Atlas* sunflowerAttackExLeftAtlas;
extern Atlas* sunflowerDieRightAtlas;
extern Atlas* sunflowerDieLeftAtlas;
extern Atlas* sunflowerRunRightAtlas;
extern Atlas* sunflowerRunLeftAtlas;
extern Atlas* sunflowerIdleRightAtlas;
extern Atlas* sunflowerIdleLeftAtlas;
extern Atlas* sunTextAtlas;

extern Player* player01;
extern Player* player02;


class SunflowerPlayer : public Player {
public:
    SunflowerPlayer();
    ~SunflowerPlayer() = default;
private:
    void onAttack() override;
    void onAttackEx() override;
    void onUpdate(int delta) override;
    void onDraw(const Camera &camera) override;
private:
    const float sunExSpeed = 0.15f; // 大招降落速度
    const Vector2 sunVelocity = {0.25f, -0.5f}; // 普通攻击速度

    Animation animationSunText;    // 头顶文本动画
    bool isSunTextVisible = false; // 是否显示大招'日'
};



#endif //SUNFLOWERPLAYER_H
